home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
trojan_p
/
checkmem.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-06-09
|
510b
|
21 lines
#include <stdio.h>
main()
{
checkmem();
}
int checkmem()
{
unsigned int vec_ip,vec_cs,orgvec_ip,orgvec_cs,highmem;
vec_ip = peek(4*0x13,0);
vec_cs = peek(4*0x13+2,0);
printf("\n13H vect IP = %x\n13H vect CS = %x\n",vec_ip,vec_cs);
orgvec_ip = peek(4*0x6D,0);
orgvec_cs = peek(4*0x6D+2,0);
printf("\n\n6DH vect IP = %x\n6DH vect CS = %x\n",orgvec_ip,orgvec_cs);
highmem=peek(0x413,0);
printf("\n\nHigh memory limit = %d (%xH)\n",highmem,highmem);
} /* checkmem */